package com.toumy.service.impl;

import com.toumy.dao.UserDao;
import com.toumy.domain.User;
import com.toumy.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User selectById(int id) {
        return userDao.selectById(id);
    }

    @Override
    public User selectByUsername(String username) {
        return userDao.selectByUser(username);
    }
}
